//
//  FSWLog.h
//  TuanLife
//
//  Created by 伏圣文 on 2017/12/23.
//  Copyright © 2017年 HuiNaMac. All rights reserved.
//

 
#ifdef DEBUG
#define XCLog(...)                 do { printf("\n\n------------------------------ShareMerge------------------------------\n"); printf("文件：%s\n函数：%s\n行号：%u\n", __FILE__, __FUNCTION__, __LINE__); NSLog(__VA_ARGS__); printf("------------------------------ShareMerge------------------------------\n\n"); } while (0)

#define XCODE_COLORS_ESCAPE   @"\033["
#define XCODE_COLORS_RESET_FG XCODE_COLORS_ESCAPE @"fg;"  // Clear any foreground color
#define XCODE_COLORS_RESET_BG XCODE_COLORS_ESCAPE @"bg;"  // Clear any background color
#define XCODE_COLORS_RESET    XCODE_COLORS_ESCAPE @";"    // Clear any foreground or background color
#define XCLogError(frmt, ...)      do { printf("\n\n------------------------------ShareMerge------------------------------\n"); printf("文件：%s\n函数：%s\n行号：%u\n", __FILE__, __FUNCTION__, __LINE__); NSLog((XCODE_COLORS_ESCAPE @"fg255,0,0;" frmt XCODE_COLORS_RESET), ## __VA_ARGS__); printf("------------------------------ShareMerge------------------------------\n\n"); } while (0)
#define XCLogWarn(frmt, ...)       do { printf("\n\n------------------------------ShareMerge------------------------------\n"); printf("文件：%s\n函数：%s\n行号：%u\n", __FILE__, __FUNCTION__, __LINE__); NSLog((XCODE_COLORS_ESCAPE @"fg245,245,0;" frmt XCODE_COLORS_RESET), ## __VA_ARGS__); printf("------------------------------ShareMerge------------------------------\n\n"); } while (0)
#define XCLogInfo(frmt, ...)       do { printf("\n\n------------------------------ShareMerge------------------------------\n"); printf("文件：%s\n函数：%s\n行号：%u\n", __FILE__, __FUNCTION__, __LINE__); NSLog((XCODE_COLORS_ESCAPE @"fg0,0,255;" frmt XCODE_COLORS_RESET), ## __VA_ARGS__); printf("------------------------------ShareMerge------------------------------\n\n"); } while (0)
#define XCLogVerbose(frmt, ...)    do { printf("\n\n------------------------------ShareMerge------------------------------\n"); printf("文件：%s\n函数：%s\n行号：%u\n", __FILE__, __FUNCTION__, __LINE__); NSLog((XCODE_COLORS_ESCAPE @"fg0,255,0;" frmt XCODE_COLORS_RESET), ## __VA_ARGS__); printf("------------------------------ShareMerge------------------------------\n\n"); } while (0)
#else
#define XCLog(...)                 do {} while (0)
#define XCLogError(...)            do {} while (0)
#define XCLogWarn(...)             do {} while (0)
#define XCLogInfo(...)             do {} while (0)
#define XCLogVerbose(...)          do {} while (0)
#endif

#import <Foundation/Foundation.h>

@interface FSWLog : NSObject

@end
